var Ajax;
if (Ajax && (Ajax != null)) {
	Ajax.Responders.register({
	  onCreate: function() {
        if($('spinner') && Ajax.activeRequestCount>0)
          Effect.Appear('spinner',{duration:0.5,queue:'end'});
	  },
	  onComplete: function() {
        if($('spinner') && Ajax.activeRequestCount==0)
          Effect.Fade('spinner',{duration:0.5,queue:'end'});
	  }
	});
}
$(document).ready(function(){
   $("#toTopLink").click(function(){
        $(window).scrollTop(0);
   });
    var $objload = $("#objload");
    $objload.css({top: 0, right: 0,height:60}).show(2000,function(){
        setTimeout(function(){
            $objload.hide(2000);
        },3000);
    });
    var __r = (new Date()).getTime();
    var params = {r:__r};
    $.get(webroot+"/spd.gsp",params,function(__data){

           $("#bCtt").html($("#bCtt").html()+__data);
    });
});